package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DsTollInfoMapper;
import com.ruoyi.system.domain.DsTollInfo;
import com.ruoyi.system.service.IDsTollInfoService;

/**
 * 收费管理Service业务层处理
 *
 * @author ruoyi
 * @date 2024-06-14
 */
@Service
        public class DsTollInfoServiceImpl implements IDsTollInfoService
        {
            @Autowired
            private DsTollInfoMapper dsTollInfoMapper;


            public DsTollInfo selectDsTollInfoByTollId(Long tollId) {
        return dsTollInfoMapper.selectDsTollInfoByTollId(tollId);
    }

    public List<DsTollInfo> selectDsTollInfoList(DsTollInfo dsTollInfo) {
        return dsTollInfoMapper.selectDsTollInfoList(dsTollInfo);
    }

    public int insertDsTollInfo(DsTollInfo dsTollInfo) {
        return dsTollInfoMapper.insertDsTollInfo(dsTollInfo);
    }

    public int updateDsTollInfo(DsTollInfo dsTollInfo) {
        return dsTollInfoMapper.updateDsTollInfo(dsTollInfo);
    }

    public int deleteDsTollInfoByTollIds(Long[] tollIds) {
        return dsTollInfoMapper.deleteDsTollInfoByTollIds(tollIds);
    }

    public int deleteDsTollInfoByTollId(Long tollId) {
        return dsTollInfoMapper.deleteDsTollInfoByTollId(tollId);
    }
}
